package edu.sctu.practice.class02.xuejiahua.practise;

/**
 * Created by Administrator on 2015/11/5.
 */
public class Client {
    public static void main(String[] args) {

        Teach teach = new Teach() {
            @Override
            public void listn() {
                System.out.println("learn html");
            }
        };
        teach.openComputer();
        teach.listn();
        teach.closeComputer();

        System.out.println("************");

        new Teach() {
            @Override
            public void listn() {

                System.out.println("learn html");



            }
        }.process();

        System.out.println("************");

        new Javalearning1().process();

    }

}
